package com.example.io.fileinputstream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @Author 尚智江
 * @description
 * @CreateDate 2024/1/8 22:48
 */
public class ByteStreamByIn1 {
    public static void main(String[] args) throws IOException {
        /*
        实现步骤：
         1. 创建对象
         2. 读取数据
         3. 释放资源
         */
        FileInputStream fileInputStream = new FileInputStream("E:\\SpringBoot\\spring-boot-demo\\java-io\\a.txt");

        int read = fileInputStream.read();

        System.out.println(read);
        fileInputStream.close();
    }
}
